package com.mfp.java.testYou.core.listeners;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.Logger;

import com.mfp.java.testYou.core.AppContext;

public class CreationListener implements ServletContextListener {
	
	private static final Logger log = Logger.getLogger(CreationListener.class);

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {

	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		AppContext.init(arg0.getServletContext());
		log.info("Application context initialized");
	}
	
}
